<!DOCTYPE html>
<div ng-controller="taskListCtrl">
	<div class="well">
		<div class="titleContainer">
			<div class="leftTitle">人员管理&nbsp;&nbsp;—>&nbsp;&nbsp;任务设置&nbsp;&nbsp;—>&nbsp;&nbsp;任务查看</div>
		</div>
		
		<div class="formContainer">
			<div class="form-horizontal">
				<div class="form-group">
					<div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">任务状态</label>
			                <div class="col-sm-8">
			                	<input type="text" id="taskState"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">创建时间（始）</label>
			                <div class="col-sm-8">
			                	<input type="text" id="startTime"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">创建时间（止）</label>
			                <div class="col-sm-8">
			                	<input type="text" id="endTime"/>
			                </div>
			            </div>
			        </div>	
			        		        
			       <div class="buttons-wrap clearBoth">
						<button class="k-button k-state-default" ng-click="search()">查询</button>
					</div>
				</div>
			</div>
		</div>
		
		<div class="tableList">
			<div kendo-grid="grid" k-options="gridOptions"></div>
		</div>
	</div>
	
	<div kendo-window="activityTaskWindow" k-title="'活动任务设置'" k-width="600" k-min-height="450" k-visible="false" k-modal="true">
		<div class="windowForm col-sm-11">
			<div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">任务起止日期</label>
		             <div class="col-sm-4">
		             	<input type="text" class="form-control" disabled="true" ng-model="form.task_starttime"/>
		             </div>
		             <div class="col-sm-4">
		             	<input type="text" class="form-control" disabled="true" ng-model="form.task_endtime"/>
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">导购分配</label>
		             <div class="col-sm-8">
		                <div class="col-sm-11" style="border:1px solid gray;height: 250px;overflow-y: auto;">
		                	<ul id="ztree" class="ztree" style="overflow-x:hidden;background-color:white;height: 240px;"></ul>
		                </div>	
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">活动成单数</label>
		             <div class="col-sm-7">
		             	<input type="number" class="form-control" ng-model="form.activity_num"/>
		             </div>
		             <label class="col-sm-1 control-label textLeft redFont">单</label>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">签到率</label>
		             <div class="col-sm-7">
		             	<input type="number" class="form-control" ng-model="form.sign_rate"/>
		             </div>
		             <label class="col-sm-1 control-label textLeft redFont">%</label>
		         </div>
		    </div>
		    <div class="buttons-wrap" ng-show="submit_show">
				<button class="k-button k-state-default" ng-click="taskUpdateSubmit()">确定</button>
			</div>
		</div>
	</div>
	
	
</div>